using IcsSEMCtrl.Event.Device;
using System;
namespace Lifter.Event.Lifter
{
    [Serializable]
    public class LifterPLCConnectionEvent : DeviceEvent
    {
        public static readonly string CLASS = "LifterPLCConnectionEvent";
        public static readonly string SPECIFIC_SUBJECT = "PLCConnection";
        public new static readonly string SUBJECT = DeviceEvent.SUBJECT + "." + LifterPLCConnectionEvent.SPECIFIC_SUBJECT;
        private bool isPLCConnection = false;
        public bool IsPLCConnection
        {
            get
            {
                return this.isPLCConnection;
            }
            set
            {
                this.isPLCConnection = value;
            }
        }
        public LifterPLCConnectionEvent(string deviceId, string deviceType, bool isPLCConnection) : base(deviceId, deviceType)
        {
            this.isPLCConnection = isPLCConnection;
        }
        protected new string CreateSubject(string id)
        {
            return LifterPLCConnectionEvent.FormSubject(id);
        }
        public new static string FormSubject(string id)
        {
            return LifterPLCConnectionEvent.SUBJECT + "." + id;
        }
    }
}
